interface CreateInvoiceTitleAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface CreateInvoiceTitleAPIData {
  type: string
  invoice_name: string
  taixer: string
  address: string
  mobile: string
  bank_name: string
  bank_account: string
}

export function createInvoiceTitleAPI(data: CreateInvoiceTitleAPIData, token: string) {
  return httpInstance.post<CreateInvoiceTitleAPIResData, CreateInvoiceTitleAPIData>(
    '/api/order/addinvoiceheader',
    data,
    { headers: { token } },
  )
}
